package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购管理对象 med_purchase_order
 * 
 * @author yangxp
 * @date 2020-07-31
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("med_purchase_order")
public class PurchaseOrder implements Serializable {

private static final long serialVersionUID=1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 采购id */
    @TableId(value = "po_id", type = IdType.AUTO)
    private String poId;

    /** 采购人 */
    @Excel(name = "采购人")

    private String purchaser;

    /** 创建人 */
    @Excel(name = "创建人")
    private String poCreator;

    /** 采购时间 */
    @Excel(name = "采购时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date poDatetime;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal poPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String poDesc;

    /** 收据图片 */
    @Excel(name = "收据图片")
    private String poImageUrl;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;

    /** 更新时间 */
    @Excel(name = "更新时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

    private Integer isDeleted;

    @TableField(exist = false)
    private List<MedPo> medicineList;

}
